export interface IPostListParams {
  page_number: number;
  page_size: number;
  sort: string;
  title: string;
  sort_mode:string;
}
export interface ICommunityInPostList {
  community_id: string;
  community_name: string;
  introduction: string;
  create_time: string;
  update_time: string;
}

export interface PostList {
  post_id: string;
  author_id: string;
  community_id: string;
  status: string;
  title: string;
  cover: string;
  description: string;
  create_time: string;
  update_time: string;
  community: ICommunityInPostList;
}

export interface PostListResult {
  list: PostList[];
  total: number;
  currentPage: number;
  currentPageSize: number;
}

export interface SendNewPostParams {
  community_id: string;
  content: string;
  status: number | string;
  title: string;
  description: string;
  cover: string;
}
export interface Community {
  community_id: string;
  community_name: string;
  introduction: string;
  create_time: string;
  update_time: string;
}

export interface IPostDetails {
  post_id: string;
  author_id: string;
  community_id: string;
  cover: string;
  status: string | number;
  title: string;
  description: string;
  content: string;
  create_time: string;
  update_time: string;
  community: Community;
}

export interface IUpdatePostParams {
	postId: string;
	community_id: string;
	content: string;
	status: number;
	title: string;
	description: string;
	cover: number;
}